/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2011
 */

package com.dream.oproject.menu.model;

import javacommon.base.BaseEntity;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class OpSystemMenuLink extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "OpSystemMenuLink";
	public static final String ALIAS_UUID = "uuid";
	public static final String ALIAS_LINK_NAME = "linkName";
	public static final String ALIAS_LINK_DESC = "linkDesc";
	public static final String ALIAS_LINK_URL = "linkUrl";
	public static final String ALIAS_MEMU_LINK_ID = "memuLinkId";
	public static final String ALIAS_PRIVILEGE_CODE = "privilegeCode";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * uuid       db_column: uuid 
     */	
	
	private java.lang.Long uuid;
    /**
     * linkName       db_column: linkName 
     */	
	//@NotBlank @Length(max=50)
	private java.lang.String linkName;
    /**
     * linkDesc       db_column: linkDesc 
     */	
	//@Length(max=100)
	private java.lang.String linkDesc;
    /**
     * linkUrl       db_column: linkUrl 
     */	
	//@Length(max=150)
	private java.lang.String linkUrl;
    /**
     * memuLinkId       db_column: memuLinkId 
     */	
	
	private java.lang.Long memuLinkId;
    /**
     * privilegeCode       db_column: privilegeCode 
     */	
	//@Length(max=100)
	private java.lang.String privilegeCode;
	//columns END

	public OpSystemMenuLink(){
	}

	public OpSystemMenuLink(
		java.lang.Long uuid
	){
		this.uuid = uuid;
	}

	public void setUuid(java.lang.Long value) {
		this.uuid = value;
	}
	
	public java.lang.Long getUuid() {
		return this.uuid;
	}
	public void setLinkName(java.lang.String value) {
		this.linkName = value;
	}
	
	public java.lang.String getLinkName() {
		return this.linkName;
	}
	public void setLinkDesc(java.lang.String value) {
		this.linkDesc = value;
	}
	
	public java.lang.String getLinkDesc() {
		return this.linkDesc;
	}
	public void setLinkUrl(java.lang.String value) {
		this.linkUrl = value;
	}
	
	public java.lang.String getLinkUrl() {
		return this.linkUrl;
	}
	public void setMemuLinkId(java.lang.Long value) {
		this.memuLinkId = value;
	}
	
	public java.lang.Long getMemuLinkId() {
		return this.memuLinkId;
	}
	public void setPrivilegeCode(java.lang.String value) {
		this.privilegeCode = value;
	}
	
	public java.lang.String getPrivilegeCode() {
		return this.privilegeCode;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Uuid",getUuid())
			.append("LinkName",getLinkName())
			.append("LinkDesc",getLinkDesc())
			.append("LinkUrl",getLinkUrl())
			.append("MemuLinkId",getMemuLinkId())
			.append("PrivilegeCode",getPrivilegeCode())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getUuid())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof OpSystemMenuLink == false) return false;
		if(this == obj) return true;
		OpSystemMenuLink other = (OpSystemMenuLink)obj;
		return new EqualsBuilder()
			.append(getUuid(),other.getUuid())
			.isEquals();
	}
}

